package factory.headfirst.factorymethod;

import factory.headfirst.Pizza;
import factory.headfirst.factorymethod.pizza.ChicagoStyleCheesePizza;
import factory.headfirst.factorymethod.pizza.ChicagoStyleClamPizza;
import factory.headfirst.factorymethod.pizza.ChicagoStylePepperoniPizza;
import factory.headfirst.factorymethod.pizza.ChicagoStyleVeggiePizza;

public class ChicagoStylePizzaStore extends PizzaStore {

	@Override
	protected Pizza createPizza(String type) {
		Pizza pizza = null;

		if (type.equals("cheese"))
			pizza = new ChicagoStyleCheesePizza();
		if (type.equals("clam"))
			pizza = new ChicagoStyleClamPizza();
		if (type.equals("veggie"))
			pizza = new ChicagoStyleVeggiePizza();
		if (type.equals("pepperoni"))
			pizza = new ChicagoStylePepperoniPizza();

		return pizza;
	}

}
